package iot.core.data.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import iot.core.data.BaseEntity;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.Date;


@Data
@Schema(name = "用户表",description = "")
@TableName(value ="htuser")
public class HTUser extends BaseEntity {

    @Schema(name = "账号",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  EName ="";

    @Schema(name = "姓名",description = "")
    @NotBlank(message = "姓名不能为空")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  Name ="";

    @Schema(name = "职务",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  ZW ="";

    @Schema(name = "密码",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  PWD ="";

    @Schema(name = "密码",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  CZPWD ="";

    @Schema(name = "邮箱",description = "")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  Email ="";

    @Schema(name = "手机号",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  Mobile ="";

    @Schema(name = "其他电话",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  Phone ="";

    @Schema(name = "区域编号",description = "")
    private  Long  HTArea_Id =0L;

    @Schema(name = "住址",description = "")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  Address ="";

    @Schema(name = "出生日期",description = "")
    private  Date  Birthday ;

    @Schema(name = "性别",description = "男、女")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  Sex ="";

    @Schema(name = "身份证号",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  IDCode ="";

    @Schema(name = "备注",description = "")
    private  String  Memo ="";

    @Schema(name = "照片",description = "")
    private  String  Url ="";

    @Schema(name = "创建日期",description = "")
    private  Date  Crt_DT ;

    @Schema(name = "创建人编号",description = "")
    private  Long  Crt_UId =0L;

    @Schema(name = "机构编号",description = "")
    private  Long  Crt_DId =0L;

    @Schema(name = "修改日期",description = "")
    private  Date  Edt_DT ;

    @Schema(name = "修改人编号",description = "")
    private  Long  Edt_UId =0L;

    @Schema(name = "删除标志",description = "")
    private  boolean  Deleted  ;

    @Schema(name = "Gid",description = "")
    private  String  GId ="";



}
